# import copy
# a = ['张无忌','赵敏',[1,2,3],'金毛狮王','张三丰']
#
# # b = a
# # print(a)
# # print(id(a))
# # print(b)
# # print(id(b))
# # b = a.copy()
# # print(a)
# # print(id(a))
# # print(b)
# # print(id(b))
# # b.remove('张无忌')
# # print('-------------------------------------')
# # print(b)
# a = ['张无忌','赵敏',[1,[7,8,9,10],3],'金毛狮王','张三丰']
# b = copy.deepcopy(a)
#
# # b[2].append(4)
# # print (b[2])
# # print (b[2][1][-1])
# b[2][1][-1] = 12
# a.remove('张三丰')
# print(b)
# print('-------------------------------------')
# print(a)

lis1 = [1,2,3,11,12,13]
lis1[:3] = [21,22,23]
print (lis1)
str = 'hello'
# lis2 = [4,5,6]
# lis3 = lis1+lis2
# lis1.extend(lis2)
# lis4 = lis1
# print (lis3)
# print( lis4)
# lis2 = lis1*3
# print(lis2)
#
# lis1.remove()#专门列表的方法
# lis2.extend()
# len(lis1) #系统的函数
# len('hello')
# print('dfad')
# input('dfasd')
print (max (lis1)) ##最大值
print (min (lis1))  #最小值
print (max (str)) ##最大值
print (min (str))  #最小值
print(sum(lis1))  #求和

# lis1.sort()
print (sorted (str,reverse=True))